package com.ruoyi.quartz.controller;

import com.ruoyi.bl.domain.BlOrder;
import com.ruoyi.bl.service.IBlDeliveryDocService;
import com.ruoyi.bl.service.IBlOrderService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.job.TaskException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.quartz.domain.SysJob;
import com.ruoyi.quartz.service.ISysMyJobService;
import com.ruoyi.quartz.util.CronUtils;
import com.ruoyi.quartz.util.ScheduleUtils;
import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 调度任务信息操作处理
 * 
 * @author ruoyi
 */
@Component("myTask")
public class SysMyJobController{

    @Autowired
    private ISysMyJobService myJobService;

    @Autowired
    private IBlOrderService orderService;

    @Autowired
    private IBlDeliveryDocService deliveryDocService;



    public void updateBlOrderAndStore()
    {
        myJobService.updateBlOrderAndStore();
    }

    public void updateBlCartAndStore()
    {
        myJobService.updateBlCartAndStore();
    }

    public void updateBlStoreAbnormal()
    {
        myJobService.updateBlStoreAbnormal();
    }

    public void assignDeliveryUser(){
        myJobService.assignDeliveryUser();
    }

    public void assignTimeoutDeliveryUser(){
        myJobService.assignTimeoutDeliveryUser();
    }
}

